<script>
export default {
  globalConfig: {
    usingComponents: {
      'i-tab-bar': '/static/iview/tab-bar/index',
      'i-tab-bar-item': '/static/iview/tab-bar-item/index',
      'i-cell-group': '/static/iview/cell-group/index',
      'i-cell': '/static/iview/cell/index',
      'i-icon': '/static/iview/icon/index',
      'i-grid': '/static/iview/grid/index',
      'i-grid-item': '/static/iview/grid-item/index',
      'i-grid-icon': '/static/iview/grid-icon/index',
      'i-grid-label': '/static/iview/grid-label/index',
      'i-card': '/static/iview/card/index',
      'i-button': '/static/iview/button/index',
      'i-avatar': '/static/iview/avatar/index',
      'i-row': '/static/iview/row/index',
      'i-col': '/static/iview/col/index'

    }
  },
  created () {
    // 调用API从本地缓存中获取数据
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    console.log('app created and cache logs by setStorageSync')
  }
}
</script>

<style>

/* this rule will be remove */
* {
  transition: width 2s;
  -moz-transition: width 2s;
  -webkit-transition: width 2s;
  -o-transition: width 2s;
}
</style>
